package com.shi.springboot.comment.service;

import com.shi.springboot.comment.entity.SysUser;
import com.shi.springboot.comment.entity.SysUserToken;

import java.util.Set;

public interface ShiroService {
    /**
     * 查询用户菜单
     * @param uid
     * @return
     */
    Set<String>getUserPermissions(Integer uid);

    /**
     * 获取token信息
     * @param token
     * @return
     */
    SysUserToken queryByToken(String token);

    /**
     * 根据用户id 查询用户信息
     * @param uid
     * @return
     */
    SysUser queryByUser(Integer uid);
}
